Integrand size = 32, antiderivative size = 485 \[ \int \frac {(a+b \log (c (e+f x)))^2}{(d e+d f x) (h+i x)^3} \, dx=\frac {b f i (e+f x) (a+b \log (c (e+f x)))}{d (f h-e i)^3 (h+i x)}+\frac {(a+b \log (c (e+f x)))^2}{2 d (f h-e i) (h+i x)^2}-\frac {f i (e+f x) (a+b \log (c (e+f x)))^2}{d (f h-e i)^3 (h+i x)}-\frac {b^2 f^2 \log (h+i x)}{d (f h-e i)^3}+\frac {2 b f^2 (a+b \log (c (e+f x))) \log \left (\frac {f (h+i x)}{f h-e i}\right )}{d (f h-e i)^3}+\frac {b f^2 (a+b \log (c (e+f x))) \log \left (1+\frac {f h-e i}{i (e+f x)}\right )}{d (f h-e i)^3}-\frac {f^2 (a+b \log (c (e+f x)))^2 \log \left (1+\frac {f h-e i}{i (e+f x)}\right )}{d (f h-e i)^3}-\frac {b^2 f^2 \operatorname {PolyLog}\left (2,-\frac {f h-e i}{i (e+f x)}\right )}{d (f h-e i)^3}+\frac {2 b f^2 (a+b \log (c (e+f x))) \operatorname {PolyLog}\left (2,-\frac {f h-e i}{i (e+f x)}\right )}{d (f h-e i)^3}+\frac {2 b^2 f^2 \operatorname {PolyLog}\left (2,-\frac {i (e+f x)}{f h-e i}\right )}{d (f h-e i)^3}+\frac {2 b^2 f^2 \operatorname {PolyLog}\left (3,-\frac {f h-e i}{i (e+f x)}\right )}{d (f h-e i)^3} \]
[Out]
Time = 0.66 (sec) , antiderivative size = 485, normalized size of antiderivative = 1.00, number of steps used = 16, number of rules used = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {2458, 12, 2389, 2379, 2421, 6724, 2355, 2354, 2438, 2356, 2351, 31} \[ \int \frac {(a+b \log (c (e+f x)))^2}{(d e+d f x) (h+i x)^3} \, dx=\frac {2 b f^2 \operatorname {PolyLog}\left (2,-\frac {f h-e i}{i (e+f x)}\right ) (a+b \log (c (e+f x)))}{d (f h-e i)^3}+\frac {2 b f^2 \log \left (\frac {f (h+i x)}{f h-e i}\right ) (a+b \log (c (e+f x)))}{d (f h-e i)^3}-\frac {f^2 \log \left (\frac {f h-e i}{i (e+f x)}+1\right ) (a+b \log (c (e+f x)))^2}{d (f h-e i)^3}+\frac {b f^2 \log \left (\frac {f h-e i}{i (e+f x)}+1\right ) (a+b \log (c (e+f x)))}{d (f h-e i)^3}-\frac {f i (e+f x) (a+b \log (c (e+f x)))^2}{d (h+i x) (f h-e i)^3}+\frac {b f i (e+f x) (a+b \log (c (e+f x)))}{d (h+i x) (f h-e i)^3}+\frac {(a+b \log (c (e+f x)))^2}{2 d (h+i x)^2 (f h-e i)}-\frac {b^2 f^2 \operatorname {PolyLog}\left (2,-\frac {f h-e i}{i (e+f x)}\right )}{d (f h-e i)^3}+\frac {2 b^2 f^2 \operatorname {PolyLog}\left (2,-\frac {i (e+f x)}{f h-e i}\right )}{d (f h-e i)^3}+\frac {2 b^2 f^2 \operatorname {PolyLog}\left (3,-\frac {f h-e i}{i (e+f x)}\right )}{d (f h-e i)^3}-\frac {b^2 f^2 \log (h+i x)}{d (f h-e i)^3} \]
[In]
[Out]
Rule 12
Rule 31
Rule 2351
Rule 2354
Rule 2355
Rule 2356
Rule 2379
Rule 2389
Rule 2421
Rule 2438
Rule 2458
Rule 6724
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {(a+b \log (c x))^2}{d x \left (\frac {f h-e i}{f}+\frac {i x}{f}\right )^3} \, dx,x,e+f x\right )}{f} \\ & = \frac {\text {Subst}\left (\int \frac {(a+b \log (c x))^2}{x \left (\frac {f h-e i}{f}+\frac {i x}{f}\right )^3} \, dx,x,e+f x\right )}{d f} \\ & = \frac {\text {Subst}\left (\int \frac {(a+b \log (c x))^2}{x \left (\frac {f h-e i}{f}+\frac {i x}{f}\right )^2} \, dx,x,e+f x\right )}{d (f h-e i)}-\frac {i \text {Subst}\left (\int \frac {(a+b \log (c x))^2}{\left (\frac {f h-e i}{f}+\frac {i x}{f}\right )^3} \, dx,x,e+f x\right )}{d f (f h-e i)} \\ & = \frac {(a+b \log (c (e+f x)))^2}{2 d (f h-e i) (h+i x)^2}+\frac {f \text {Subst}\left (\int \frac {(a+b \log (c x))^2}{x \left (\frac {f h-e i}{f}+\frac {i x}{f}\right )} \, dx,x,e+f x\right )}{d (f h-e i)^2}-\frac {i \text {Subst}\left (\int \frac {(a+b \log (c x))^2}{\left (\frac {f h-e i}{f}+\frac {i x}{f}\right )^2} \, dx,x,e+f x\right )}{d (f h-e i)^2}-\frac {b \text {Subst}\left (\int \frac {a+b \log (c x)}{x \left (\frac {f h-e i}{f}+\frac {i x}{f}\right )^2} \, dx,x,e+f x\right )}{d (f h-e i)} \\ & = \frac {(a+b \log (c (e+f x)))^2}{2 d (f h-e i) (h+i x)^2}-\frac {f i (e+f x) (a+b \log (c (e+f x)))^2}{d (f h-e i)^3 (h+i x)}-\frac {f^2 (a+b \log (c (e+f x)))^2 \log \left (1+\frac {f h-e i}{i (e+f x)}\right )}{d (f h-e i)^3}+\frac {\left (2 b f^2\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {f h-e i}{i x}\right ) (a+b \log (c x))}{x} \, dx,x,e+f x\right )}{d (f h-e i)^3}+\frac {(2 b f i) \text {Subst}\left (\int \frac {a+b \log (c x)}{\frac {f h-e i}{f}+\frac {i x}{f}} \, dx,x,e+f x\right )}{d (f h-e i)^3}-\frac {(b f) \text {Subst}\left (\int \frac {a+b \log (c x)}{x \left (\frac {f h-e i}{f}+\frac {i x}{f}\right )} \, dx,x,e+f x\right )}{d (f h-e i)^2}+\frac {(b i) \text {Subst}\left (\int \frac {a+b \log (c x)}{\left (\frac {f h-e i}{f}+\frac {i x}{f}\right )^2} \, dx,x,e+f x\right )}{d (f h-e i)^2} \\ & = \frac {b f i (e+f x) (a+b \log (c (e+f x)))}{d (f h-e i)^3 (h+i x)}+\frac {(a+b \log (c (e+f x)))^2}{2 d (f h-e i) (h+i x)^2}-\frac {f i (e+f x) (a+b \log (c (e+f x)))^2}{d (f h-e i)^3 (h+i x)}+\frac {2 b f^2 (a+b \log (c (e+f x))) \log \left (\frac {f (h+i x)}{f h-e i}\right )}{d (f h-e i)^3}+\frac {b f^2 (a+b \log (c (e+f x))) \log \left (1+\frac {f h-e i}{i (e+f x)}\right )}{d (f h-e i)^3}-\frac {f^2 (a+b \log (c (e+f x)))^2 \log \left (1+\frac {f h-e i}{i (e+f x)}\right )}{d (f h-e i)^3}+\frac {2 b f^2 (a+b \log (c (e+f x))) \text {Li}_2\left (-\frac {f h-e i}{i (e+f x)}\right )}{d (f h-e i)^3}-\frac {\left (b^2 f^2\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {f h-e i}{i x}\right )}{x} \, dx,x,e+f x\right )}{d (f h-e i)^3}-\frac {\left (2 b^2 f^2\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {i x}{f h-e i}\right )}{x} \, dx,x,e+f x\right )}{d (f h-e i)^3}-\frac {\left (2 b^2 f^2\right ) \text {Subst}\left (\int \frac {\text {Li}_2\left (-\frac {f h-e i}{i x}\right )}{x} \, dx,x,e+f x\right )}{d (f h-e i)^3}-\frac {\left (b^2 f i\right ) \text {Subst}\left (\int \frac {1}{\frac {f h-e i}{f}+\frac {i x}{f}} \, dx,x,e+f x\right )}{d (f h-e i)^3} \\ & = \frac {b f i (e+f x) (a+b \log (c (e+f x)))}{d (f h-e i)^3 (h+i x)}+\frac {(a+b \log (c (e+f x)))^2}{2 d (f h-e i) (h+i x)^2}-\frac {f i (e+f x) (a+b \log (c (e+f x)))^2}{d (f h-e i)^3 (h+i x)}-\frac {b^2 f^2 \log (h+i x)}{d (f h-e i)^3}+\frac {2 b f^2 (a+b \log (c (e+f x))) \log \left (\frac {f (h+i x)}{f h-e i}\right )}{d (f h-e i)^3}+\frac {b f^2 (a+b \log (c (e+f x))) \log \left (1+\frac {f h-e i}{i (e+f x)}\right )}{d (f h-e i)^3}-\frac {f^2 (a+b \log (c (e+f x)))^2 \log \left (1+\frac {f h-e i}{i (e+f x)}\right )}{d (f h-e i)^3}-\frac {b^2 f^2 \text {Li}_2\left (-\frac {f h-e i}{i (e+f x)}\right )}{d (f h-e i)^3}+\frac {2 b f^2 (a+b \log (c (e+f x))) \text {Li}_2\left (-\frac {f h-e i}{i (e+f x)}\right )}{d (f h-e i)^3}+\frac {2 b^2 f^2 \text {Li}_2\left (-\frac {i (e+f x)}{f h-e i}\right )}{d (f h-e i)^3}+\frac {2 b^2 f^2 \text {Li}_3\left (-\frac {f h-e i}{i (e+f x)}\right )}{d (f h-e i)^3} \\ \end{align*}
Time = 0.68 (sec) , antiderivative size = 664, normalized size of antiderivative = 1.37 \[ \int \frac {(a+b \log (c (e+f x)))^2}{(d e+d f x) (h+i x)^3} \, dx=\frac {3 a^2 (f h-e i)^2+6 a^2 f (f h-e i) (h+i x)+6 a^2 f^2 (h+i x)^2 \log (e+f x)-6 a^2 f^2 (h+i x)^2 \log (h+i x)+6 a b \left ((f h-e i)^2 \log (c (e+f x))+f^2 (h+i x)^2 \log ^2(c (e+f x))-f (h+i x) (f h-e i+f (h+i x) \log (e+f x)-f (h+i x) \log (h+i x))-2 f (h+i x) (f (h+i x) \log (e+f x)+(-f h+e i) \log (c (e+f x))-f (h+i x) \log (h+i x))-2 f^2 (h+i x)^2 \left (\log (c (e+f x)) \log \left (\frac {f (h+i x)}{f h-e i}\right )+\operatorname {PolyLog}\left (2,\frac {i (e+f x)}{-f h+e i}\right )\right )\right )+b^2 \left (2 f^2 (h+i x)^2 \log ^3(c (e+f x))-6 f (h+i x) \left (\log (c (e+f x)) \left (i (e+f x) \log (c (e+f x))-2 f (h+i x) \log \left (\frac {f (h+i x)}{f h-e i}\right )\right )-2 f (h+i x) \operatorname {PolyLog}\left (2,\frac {i (e+f x)}{-f h+e i}\right )\right )+3 \left ((f h-e i)^2 \log ^2(c (e+f x))+f (h+i x) \left (2 f (h+i x) \log (e+f x)-2 (f h-e i) \log (c (e+f x))-f (h+i x) \log ^2(c (e+f x))-2 f (h+i x) \log (h+i x)+2 f (h+i x) \log (c (e+f x)) \log \left (\frac {f (h+i x)}{f h-e i}\right )+2 f (h+i x) \operatorname {PolyLog}\left (2,\frac {i (e+f x)}{-f h+e i}\right )\right )\right )-6 f^2 (h+i x)^2 \left (\log ^2(c (e+f x)) \log \left (\frac {f (h+i x)}{f h-e i}\right )+2 \log (c (e+f x)) \operatorname {PolyLog}\left (2,\frac {i (e+f x)}{-f h+e i}\right )-2 \operatorname {PolyLog}\left (3,\frac {i (e+f x)}{-f h+e i}\right )\right )\right )}{6 d (f h-e i)^3 (h+i x)^2} \]
[In]
[Out]
\[\int \frac {\left (a +b \ln \left (c \left (f x +e \right )\right )\right )^{2}}{\left (d f x +d e \right ) \left (i x +h \right )^{3}}d x\]
[In]
[Out]
\[ \int \frac {(a+b \log (c (e+f x)))^2}{(d e+d f x) (h+i x)^3} \, dx=\int { \frac {{\left (b \log \left ({\left (f x + e\right )} c\right ) + a\right )}^{2}}{{\left (d f x + d e\right )} {\left (i x + h\right )}^{3}} \,d x } \]
[In]
[Out]
\[ \int \frac {(a+b \log (c (e+f x)))^2}{(d e+d f x) (h+i x)^3} \, dx=\frac {\int \frac {a^{2}}{e h^{3} + 3 e h^{2} i x + 3 e h i^{2} x^{2} + e i^{3} x^{3} + f h^{3} x + 3 f h^{2} i x^{2} + 3 f h i^{2} x^{3} + f i^{3} x^{4}}\, dx + \int \frac {b^{2} \log {\left (c e + c f x \right )}^{2}}{e h^{3} + 3 e h^{2} i x + 3 e h i^{2} x^{2} + e i^{3} x^{3} + f h^{3} x + 3 f h^{2} i x^{2} + 3 f h i^{2} x^{3} + f i^{3} x^{4}}\, dx + \int \frac {2 a b \log {\left (c e + c f x \right )}}{e h^{3} + 3 e h^{2} i x + 3 e h i^{2} x^{2} + e i^{3} x^{3} + f h^{3} x + 3 f h^{2} i x^{2} + 3 f h i^{2} x^{3} + f i^{3} x^{4}}\, dx}{d} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 1271 vs. \(2 (480) = 960\).
Time = 0.38 (sec) , antiderivative size = 1271, normalized size of antiderivative = 2.62 \[ \int \frac {(a+b \log (c (e+f x)))^2}{(d e+d f x) (h+i x)^3} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {(a+b \log (c (e+f x)))^2}{(d e+d f x) (h+i x)^3} \, dx=\int { \frac {{\left (b \log \left ({\left (f x + e\right )} c\right ) + a\right )}^{2}}{{\left (d f x + d e\right )} {\left (i x + h\right )}^{3}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(a+b \log (c (e+f x)))^2}{(d e+d f x) (h+i x)^3} \, dx=\int \frac {{\left (a+b\,\ln \left (c\,\left (e+f\,x\right )\right )\right )}^2}{{\left (h+i\,x\right )}^3\,\left (d\,e+d\,f\,x\right )} \,d x \]
[In]
[Out]